import {httpDelete, httpGet, httpPageableGet, httpPost, httpPut} from '@/utils/request'


export async function findOne( id:any ){
  const { data }  = await httpGet(`/api/v1/column-pair-group/findOne/${id}` )
  return data;
}

export async function list( params?:any ){
  const { data,total }  = await httpPageableGet('/api/v1/column-pair-group/list',params)
  return { data,total };
}

export async function edit( params?:any ){
  const { code }  = await httpPut('/api/v1/column-pair-group/edit',params)
  return code === 200;
}

export async function add( params?:any ){
  const { code }  = await httpPost('/api/v1/column-pair-group/add',params)
  return code === 200;
}

export async function deleteById( id:any ){
  const { code }  = await httpDelete(`/api/v1/column-pair-group/delete/${id}` )
  return code === 200;
}

